﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" 
CodeBehind="ProblemReportSearch.aspx.cs" Inherits="WXYW.ProblemReportSearch" ValidateRequest="false" %>
<%@ Register Namespace="WXYW.Controls" TagPrefix="WXYWControl" Assembly="WXYW.Common" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    查看资料/报告
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
    关键字<asp:TextBox ID="keyWordTextBox" runat="server" Height="16px" onkeypress="enterTxtBox('searchLinkButton')"></asp:TextBox>
    <asp:LinkButton ID="searchLinkButton" runat="server" OnClick="searchLinkButton_Click">查询</asp:LinkButton>
    <asp:LinkButton ID="resetLinkButton" runat="server" OnClick="resetLinkButton_Click">清除</asp:LinkButton>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <WXYWControl:CustomGridView ID="resourceGridView" CssClass="tableList" runat="server"
        AutoGenerateColumns="False" AllowPaging="True" PageSize="20" Width="100%" BorderColor="#888888"
        OnPageIndexChanging="resourceGridView_PageIndexChanging" OnRowDataBound="resourceGridView_RowDataBound"
        OnMustAddARow="GridView_MustAddARow" OnDataBound="resourceGridView_DataBound">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="报告类型" DataField="ReportType" >
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField HeaderText="产品线" DataField="ProductLineType" >
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="True" />
            </asp:BoundField>
            <asp:BoundField HeaderText="产品型号" DataField="ProductType" >
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="True" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="报告主题">
                <ItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Subject") %>' CssClass="NOBorderTxtBox" Rows="1" TextMode="MultiLine" Columns="15"></asp:TextBox>
                </ItemTemplate>
                <HeaderStyle Width="100px" Wrap="False" />
                <ItemStyle Width="100px" Wrap="True" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="故障类型" DataField="ProblemType" >
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="True" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="故障详细描述">
                <ItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("ProblemDescription") %>' CssClass="NOBorderTxtBox" Rows="1" TextMode="MultiLine" Columns="15"></asp:TextBox>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="True" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="创建日期" DataField="CreateDate" 
                DataFormatString="{0:yyyy-MM-dd}" >       
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <img src="image/operateicon/docview.gif" />
                    <asp:LinkButton ID="viewLinkButton" runat="server" OnClick="viewLinkButton_Click"
                        CommandArgument='<%#Eval("Code") %>'>查看</asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
        </Columns>
        <PagerTemplate>
            本类记录<span style="color: Red"><%= resourceGridView.Rows.Count%></span>条, <span style="color: Red">
                20</span>条/页 当前 <span style="color: Red">
                    <%= resourceGridView.PageIndex + 1%>/<%= resourceGridView.PageCount%></span>页
            <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
                Style="color: blue">首页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Prev"
                    ID="LinkButton2" runat="server" Style="color: blue">|上一页</asp:LinkButton>
            <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
                Style="color: blue">下一页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Last"
                    ID="LinkButton4" runat="server" Style="color: blue">|尾页</asp:LinkButton>
            转到<asp:DropDownList ID="pageDDL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="pageDDL_SelectedIndexChanged">
            </asp:DropDownList>
        </PagerTemplate>
        <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>
    </WXYWControl:CustomGridView>
</asp:Content>
